import LoginController from "../controllers/login.controller";

export default function routing($stateProvider, $urlRouterProvider) {

  $urlRouterProvider.otherwise("/login");
  $stateProvider
    .state("login", {
      url: "/login",
      templateUrl: "src/views/login/login.html",
      controller: LoginController,
      controllerAs: 'ctrl'
    })
    .state("home", {
      url: "/home",
      templateUrl: "src/views/home/home.html"
    })
    .state("list", {
      url: "/list",
      templateUrl: "src/views/list/list.html"
    })
}

routing.$inject = ['$stateProvider', '$urlRouterProvider'];